<template>
	<view>
		<view style="height: 100rpx;"></view>
		<view class="footers">
			<navigator url="/pages/index" class="f-menu" hover-class="none" open-type="reLaunch">
				<view class="fm-icon">
					<image src="/static/images/icon-home.png" class="icon"></image>
				</view>
				<view class="fm-title">首页</view>
			</navigator>
			<view class="f-menu" @click="telephoneCall('19102671826')">
				<view class="fm-icon">
					<image src="/static/images/icon-phone.png" class="icon"></image>
				</view>
				<view class="fm-title">电话咨询</view>
			</view>
			<view class="f-menu">
				<view class="fm-icon">
					<image src="/static/images/icon-message.png" class="icon"></image>
				</view>
				<view class="fm-title">在线咨询</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"footer",
		data() {
			return {
				
			}
		},
		methods: {
			// 电话咨询
			telephoneCall(phoneNumber) {
				uni.makePhoneCall({
					phoneNumber
				})
			}
		}
	}
</script>

<style lang="less">
	.footers {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 995;
		height: 100rpx;
		background: #F2F2F2;
		display: flex;
		align-items: stretch;
		border-top: 1rpx solid #e6e6e6;
		box-sizing: border-box;
		
		.f-menu {
			flex: calc(100% / 3) 0;
			
			.fm-icon {
				width: 100%;
				height: 60rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				
				.icon {
					width: 42rpx;
					height: 42rpx;
				}
			}
			
			.fm-title {
				text-align: center;
				font-size: 24rpx;
				color: #666;
				overflow: hidden;
				white-space: nowrap;
			}
		}
	}
</style>